<?php
namespace app\swoole\validate;

class ScheduleTask extends \think\Validate {

    protected $rule = [
        'minute' => ['regex' => '/^((((\d+-\d+)|(\*))(\/\d+)?)|[\d+,])+$/'],
        'hour' => ['regex' => '/^((((\d+-\d+)|(\*))(\/\d+)?)|[\d+,])+$/'],
        'day' => ['regex' => '/^((((\d+-\d+)|(\*))(\/\d+)?)|[\d+,])+$/'],
        'month' => ['regex' => '/^((((\d+-\d+)|(\*))(\/\d+)?)|[\d+,])+$/i'],
    ];

}
